package com.ref.demo3;

/**
 * @ClassName Student
 * @Description TODO
 * @Author Kx
 * @Date 2025/3/17 15:41
 * @Version 1.0
 */
public class Student {
    private String name;
    private int age;
    private double weight;

    public Student()
    {
        System.out.println("无参构造方法");
    }

    public Student(String name,int age,double weight)
    {
        this.name = name;
        this.age = age;
        this.weight = weight;
    }

    public void show(String name,int age,double weight){
        System.out.println("姓名："+name+" 年龄："+age+" 体重："+weight);
    }
}
